<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Header &lt;boost/test/utils/named_params.hpp&gt;</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../../index.html" title="Boost.Test">
<link rel="up" href="../../../../boost_test/reference.html" title="Reference">
<link rel="prev" href="../../../../boost/unit_test/is_forward_iterable.html" title="Struct template is_forward_iterable">
<link rel="next" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../../../boost/unit_test/is_forward_iterable.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../../boost_test/reference.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../../boost/nfp/has_param.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="header.boost.test.utils.named_params_hpp"></a>Header &lt;<a href="../../../../../../../../boost/test/utils/named_params.hpp" target="_top">boost/test/utils/named_params.hpp</a>&gt;</h4></div></div></div>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">nfp</span> <span class="special">{</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special">;</span>

    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Rest<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">&gt;</span> 
      <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/has_param_named_p_idm48494.html" title="Struct template has_param&lt;named_parameter_combine&lt; NP, Rest &gt;, Keyword&gt;">has_param</a><span class="special">&lt;</span><span class="identifier">named_parameter_combine</span><span class="special">&lt;</span> <span class="identifier">NP</span><span class="special">,</span> <span class="identifier">Rest</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">Keyword</span><span class="special">&gt;</span><span class="special">;</span>

    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/is_named_param_pack.html" title="Struct template is_named_param_pack">is_named_param_pack</a><span class="special">;</span>

    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">typename</span> RefType<span class="special">&gt;</span> 
      <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/is_named_param_pa_idm48509.html" title="Struct template is_named_param_pack&lt;named_parameter&lt; T, unique_id, RefType &gt;&gt;">is_named_param_pack</a><span class="special">&lt;</span><span class="identifier">named_parameter</span><span class="special">&lt;</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">unique_id</span><span class="special">,</span> <span class="identifier">RefType</span> <span class="special">&gt;</span><span class="special">&gt;</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Rest<span class="special">&gt;</span> 
      <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/is_named_param_pa_idm48519.html" title="Struct template is_named_param_pack&lt;named_parameter_combine&lt; NP, Rest &gt;&gt;">is_named_param_pack</a><span class="special">&lt;</span><span class="identifier">named_parameter_combine</span><span class="special">&lt;</span> <span class="identifier">NP</span><span class="special">,</span> <span class="identifier">Rest</span> <span class="special">&gt;</span><span class="special">&gt;</span><span class="special">;</span>

    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">bool</span> required <span class="special">=</span> <span class="keyword">false</span><span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/keyword.html" title="Struct template keyword">keyword</a><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">typename</span> RefType<span class="special">&gt;</span> 
      <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/named_parameter.html" title="Struct template named_parameter">named_parameter</a><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Rest <span class="special">=</span> <a class="link" href="../../../../boost/nfp/nil.html" title="Struct nil">nil</a><span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/named_parameter_combine.html" title="Struct template named_parameter_combine">named_parameter_combine</a><span class="special">;</span>
    <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/nil.html" title="Struct nil">nil</a><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">,</span> <span class="keyword">typename</span> DefaultType <span class="special">=</span> <span class="keyword">void</span><span class="special">&gt;</span> 
      <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/param_type.html" title="Struct template param_type">param_type</a><span class="special">;</span>

    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Rest<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">,</span> 
             <span class="keyword">typename</span> DefaultType<span class="special">&gt;</span> 
      <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/param_type_named__idm48738.html" title="Struct template param_type&lt;named_parameter_combine&lt; NP, Rest &gt;, Keyword, DefaultType&gt;">param_type</a><span class="special">&lt;</span><span class="identifier">named_parameter_combine</span><span class="special">&lt;</span> <span class="identifier">NP</span><span class="special">,</span> <span class="identifier">Rest</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">Keyword</span><span class="special">,</span> <span class="identifier">DefaultType</span><span class="special">&gt;</span><span class="special">;</span>

    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">bool</span> required<span class="special">&gt;</span> 
      <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/typed_keyword.html" title="Struct template typed_keyword">typed_keyword</a><span class="special">;</span>

    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">bool</span> required<span class="special">&gt;</span> 
      <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/typed_keyword_boo_idm48770.html" title="Struct template typed_keyword&lt;bool, unique_id, required&gt;">typed_keyword</a><span class="special">&lt;</span><span class="keyword">bool</span><span class="special">,</span> <span class="identifier">unique_id</span><span class="special">,</span> <span class="identifier">required</span><span class="special">&gt;</span><span class="special">;</span>

    <span class="keyword">typedef</span> <a class="link" href="../../../../boost/nfp/named_parameter.html" title="Struct template named_parameter">named_parameter</a><span class="special">&lt;</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">struct</span> <span class="identifier">no_params_type_t</span><span class="special">,</span> <span class="keyword">char</span> <span class="special">&gt;</span> <a name="boost.nfp.no_params_type"></a><span class="identifier">no_params_type</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">&gt;</span> 
      <span class="identifier">enable_if_c</span><span class="special">&lt;</span><span class="special">!</span><a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special">&lt;</span> <span class="identifier">Params</span><span class="special">,</span> <span class="identifier">Keyword</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> 
      <a name="boost.nfp.opt_assign_idm48841"></a><span class="identifier">opt_assign</span><span class="special">(</span><span class="identifier">T</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">Keyword</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">&gt;</span> 
      <span class="identifier">enable_if_c</span><span class="special">&lt;</span> <a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special">&lt;</span> <span class="identifier">Params</span><span class="special">,</span> <span class="identifier">Keyword</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> 
      <a name="boost.nfp.opt_assign_idm48854"></a><span class="identifier">opt_assign</span><span class="special">(</span><span class="identifier">T</span> <span class="special">&amp;</span> target<span class="special">,</span> <span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&amp;</span> p<span class="special">,</span> <span class="identifier">Keyword</span> k<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">&gt;</span> 
      <span class="identifier">T</span> <a name="boost.nfp.opt_get"></a><span class="identifier">opt_get</span><span class="special">(</span><span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&amp;</span> p<span class="special">,</span> <span class="identifier">Keyword</span> k<span class="special">,</span> <span class="identifier">T</span> default_val<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> NP<span class="special">&gt;</span> 
      <span class="identifier">enable_if_c</span><span class="special">&lt;</span><span class="special">!</span><a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special">&lt;</span> <span class="identifier">Params</span><span class="special">,</span> <a class="link" href="../../../../boost/nfp/keyword.html" title="Struct template keyword">keyword</a><span class="special">&lt;</span> <span class="keyword">typename</span> <span class="identifier">NP</span><span class="special">::</span><span class="identifier">id</span> <span class="special">&gt;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <a class="link" href="../../../../boost/nfp/named_parameter_combine.html" title="Struct template named_parameter_combine">named_parameter_combine</a><span class="special">&lt;</span> <span class="identifier">NP</span><span class="special">,</span> <span class="identifier">Params</span> <span class="special">&gt;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> 
      <a name="boost.nfp.opt_append_idm48879"></a><span class="identifier">opt_append</span><span class="special">(</span><span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&amp;</span> params<span class="special">,</span> <span class="identifier">NP</span> <span class="keyword">const</span> <span class="special">&amp;</span> np<span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> NP<span class="special">&gt;</span> 
      <span class="identifier">enable_if_c</span><span class="special">&lt;</span> <a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special">&lt;</span> <span class="identifier">Params</span><span class="special">,</span> <a class="link" href="../../../../boost/nfp/keyword.html" title="Struct template keyword">keyword</a><span class="special">&lt;</span> <span class="keyword">typename</span> <span class="identifier">NP</span><span class="special">::</span><span class="identifier">id</span> <span class="special">&gt;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">Params</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> 
      <a name="boost.nfp.opt_append_idm48891"></a><span class="identifier">opt_append</span><span class="special">(</span><span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&amp;</span> params<span class="special">,</span> <span class="identifier">NP</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2001-2022 Boost.Test contributors<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../../../boost/unit_test/is_forward_iterable.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../../boost_test/reference.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../../boost/nfp/has_param.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
